package com.shensi.api.admin.client.station;

import com.shensi.api.admin.client.fallback.monitor.SysLogininforClientFallBack;
import com.shensi.api.admin.domian.station.dto.AppUserSuperDto;
import com.shensi.common.core.annotation.Log;
import com.shensi.common.core.constant.CloudConstant;
import com.shensi.common.core.domain.AjaxResult;
import com.shensi.common.core.enums.BusinessType;
import com.shensi.common.core.page.TableDataInfo;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;


/**
 * @author mao
 */
@FeignClient(
        value = CloudConstant.ADMIN_SERVER,
        fallbackFactory = SysLogininforClientFallBack.class)
@Component
public interface AppUserSuperClient {

    /**
     * 查询【超级会员】列表
     */
    @GetMapping("/appusersuper/list")
    @ApiOperation("获取超级会员列表")
    public TableDataInfo list(@SpringQueryMap AppUserSuperDto appUserSuper);

    /**
     * 导出【超级会员】列表
     */
    @GetMapping("/appusersuper/export")
    public AjaxResult export(@SpringQueryMap AppUserSuperDto appUserSuper);

    /**
     * 获取【超级会员】详细信息
     */
    @GetMapping(value = "/appusersuper/{superId}")
    @ApiOperation("获取超级会员详情")
    public AjaxResult getInfo(@PathVariable("superId") Long superId);

    /**
     * 新增【超级会员】
     */
    @PostMapping("/appusersuper")
    public AjaxResult add(@RequestBody AppUserSuperDto appUserSuper);

    @PostMapping(value = "/appusersuper/addphone")
    public AjaxResult addPhone(@RequestBody AppUserSuperDto appUserSuper);

    /**
     * 修改【超级会员】
     */
    @PutMapping("/appusersuper")
    public AjaxResult edit(@RequestBody AppUserSuperDto appUserSuper);

    /**
     * 删除【超级会员】
     */
    @DeleteMapping("/appusersuper/{superIds}")
    public AjaxResult remove(@PathVariable("superIds") Long[] superIds);

}
